package org.itboys.fuzion.entity;

import org.itboys.mongodb.entity.BaseLongIdEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;

/**
 * 会员二维码的记录值
 * @author Administrator
 *
 */
@Entity(value = "MemberTwoCodeMedia", noClassnameStored = true)
public class MemberTwoCodeMedia extends BaseLongIdEntity{

	private static final long serialVersionUID = -3740002847093401386L;
	
	@Indexed
	private Long sellerId;//这个会员所属的店铺ID
	@Indexed
	private Long memberId;//会员ID
	private String mediaId;//素材在微信上的ID
	private String twocodeUrl;//存储的二维码路径
	private int expire = 0;//记录的有效期时间
	
	public String getTwocodeUrl() {
		return twocodeUrl;
	}
	public void setTwocodeUrl(String twocodeUrl) {
		this.twocodeUrl = twocodeUrl;
	}
	public int getExpire() {
		return expire;
	}
	public void setExpire(int expire) {
		this.expire = expire;
	}
	public Long getSellerId() {
		return sellerId;
	}
	public void setSellerId(Long sellerId) {
		this.sellerId = sellerId;
	}
	public Long getMemberId() {
		return memberId;
	}
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	public String getMediaId() {
		return mediaId;
	}
	public void setMediaId(String mediaId) {
		this.mediaId = mediaId;
	}
	
}
